@extends('layouts.back_stage')
@section('content')
    <link rel="stylesheet" href="{{env('CDN_DOMAIN_NAME')}}/css/createPro.css?v=1.0.7">
    <script src="{{env('CDN_DOMAIN_NAME')}}/js/commonjs/jquery.select.js"></script>
    <script src="{{env('CDN_DOMAIN_NAME')}}/js/commonjs/jquery.page.js?v=1.0.3"></script>
    <link rel="stylesheet" href="{{env('CDN_DOMAIN_NAME')}}/css/commoncss/just-tip.css">
    <script src="{{env('CDN_DOMAIN_NAME')}}/js/commonjs/justTools.js"></script>
    <style>
        .popup,.popup2{width:380px;height:auto;background:#fff;position:absolute;top:25%;left:30%;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;z-index:20000;-moz-user-select: none; -webkit-user-select: none;}
        .popup_header,.popup_header2{width:100%;height:50px;padding:15px;border-bottom:1px solid #e5e5e5;cursor: move;position: relative;}
        .shut{float:right;font-size:21px;font-weight:700;line-height:1;color:#ccc;text-shadow:0 1px 0 #fff;opacity:2;cursor:pointer;outline:none;background:#fff;border:0;}
        .shut:hover{color:red;}
        .popup_center,.popup_center2{padding:20px 40px;font-size:15px;}
        .popup_center .sizeInp{width:15px;height:15px;}
        .popup_bottom,.popup_bottom2{padding:15px 40px 30px;margin-bottom:30px;}
        .popup_bottom .popup_btn,.popup_bottom2 .popup_btn2{width:54px;height:30px;float:right;outline:none;border:0;background:#27c24c;color:#fff;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;}
    </style>
    <script>
        //颜色
        var colors = [
            <?php $j = count($colors_arr);$i = 0; ?>
                    @foreach ($colors_arr as $k=>$v )
                '{{$v["color_name"]}}'<?php $i++;?> @if($i<$j),@endif
            @endforeach
        ];
        //尺码工艺
        var craft_infos_new = [
            <?php $j = count($craft_infos);$i = 0; ?>
                    @foreach ($craft_infos as $k=>$v )
            {"id":"{{$v->id}}","craft_name":"{{$v->craft_name}}"}<?php $i++;?> @if($i<$j),@endif
            @endforeach
        ];
    </script>
    <div class="container">
        <div class="row">
            <div style="margin:30px;"><h3 >添加商品资料</h3></div>
            <div style="width:95%;margin-left:40px;">
                <div class="form-group"><h3 >基本信息</h3></div>
                <div class="form-group">
                    <ul class="form_ul">
                        <li class="form_li"><span class="xing">*</span>大分类：
                            <select class="sel_inp inp1">
                                @if($infos->cate1)
                                    <option value="{{ $infos->cate1 }}"> {{ $categorys[$infos->cate1] }}</option>
                                @else
                                    <option value="">请选择</option>
                                @endif
                                @foreach($category as $k=>$v)
                                    <option value="{{ $k }}">{{ $v }}</option>
                                @endforeach
                            </select>
                        </li>
                        <li class="form_li"><span class="xing">*</span>中分类：
                            <select class="sel_inp inp2">
                                @if(($infos->cate2))
                                    <option value="{{ $infos->cate2 }}"> {{ $categorys[$infos->cate2] }}</option>
                                @else
                                    <option value="">请选择</option>
                                @endif
                            </select>
                        </li>
                        <li class="form_li"><span class="xing">*</span>小分类：
                            <select class="sel_inp inp3">
                                @if($infos->cate3)
                                    <option value="{{ $infos->cate3 }}"> {{ $categorys[$infos->cate3] }}</option>
                                @else
                                    <option value="">请选择</option>
                                @endif
                            </select>
                        </li>
                        <li class="form_li"><span class="xing">*</span>款号：<input class="form_inp inp8" maxlength="20" value="{{ $infos->girard }}" type="text" autocomplete="off" autocorrect="off" placeholder="款号" /></li>
                    </ul>
                    <ul class="form_ul">
                        <li class="form_li"><span class="xing">*</span>品牌：
                            <select class="sel_inp inp4">
                                <option value="">请选择</option>
                                @foreach($brands as $k=>$v)
                                    <option value="{{ $k }}"
                                            @if(count($infos)>0)
                                            @if($infos->brand==$k)selected
                                            @endif
                                            @endif
                                    >{{ $v }}</option>
                                @endforeach
                            </select>
                        </li>
                        <li class="form_li"><span class="xing">*</span>年份：
                            <select class="sel_inp inp5">
                                @if(count($infos)>0)
                                    @if(isset($infos->year))
                                        <option value="{{$infos->year}}">{{$infos->year}}</option>
                                    @endif
                                @endif
                                <option value="2016">2016</option>
                                <option value="2017">2017</option>
                                <option value="2018">2018</option>
                                <option value="2019">2019</option>
                                <option value="2020">2020</option>
                            </select>
                        </li>
                        <li class="form_li"><span class="xing">*</span>季节：
                            <select class="sel_inp inp6">
                                @if(count($infos)>0)
                                    @if(isset($infos->quarter))
                                        <option value="{{$infos->quarter}}"> {{$infos->quarter}}</option>
                                    @endif
                                @endif
                                <option value="">请选择</option>
                                <option value="春季">春季</option>
                                <option value="夏季">夏季</option>
                                <option value="秋季">秋季</option>
                                <option value="冬季">冬季</option>
                                <option value="四季">四季</option>
                            </select>
                        </li>
                        <li class="form_li" style="width:215px;"><span class="xing">*</span>销售季节：
                            <select class="sel_inp inp7" name="sale_quater">

                                @if(count($infos)>0)
                                    @if(isset($infos->sale_quarter))
                                        <option value="{{$infos->sale_quarter_id}}">{{$infos->sale_quarter}}</option>
                                    @endif
                                @endif

                                <option value="">请选择</option>
                                @foreach ($season as $k => $v)
                                    <option value="{{$k}}">{{$v}}</option>
                                @endforeach
                            </select>
                        </li>
                    </ul>
                    <ul class="form_ul">
                        <li class="form_li"><span class="xing">*</span>吊牌价：<input class="form_inp inp9" maxlength="15" value="{{ $infos->retail_price }}" type="text" autocomplete="off" autocorrect="off" placeholder="吊牌价" /></li>
                        <li class="form_li"><span class="xing">*</span>单位：
                            <select class="sel_inp inp10" name="unit">
                                @if(isset($infos->unit))
                                    <option value="{{$infos->unit}}">{{$infos->unit}}</option>
                                @endif
                                <option value="">请选择</option>
                                <option value="件">件</option>
                                <option value="双">双</option>
                                <option value="个">个</option>
                                <option value="条">条</option>
                                <option value="顶">顶</option>
                            </select>
                        </li>
                        <li class="form_li" style="width:305px;"><span class="xing">*</span>品名：<input class="form_inp inp11" style="width:250px;"  value="{{ $infos->name }}" maxlength="20" type="text" autocomplete="off" autocorrect="off" placeholder="品名" /></li>
                    </ul>
                </div>
                <div class="form-group"><h3>尺码规格</h3></div>
                <div class="form-group">
                    <div style="width:195px;line-height:30px;float:left;">
                        <span class="xing">*</span>尺码组：
                        <select class="sel_inp inp12">
                            <option value="">请选择</option>
                            <option value="服装" @if(isset($infos->size_group) && $infos->size_group=='服装') selected @endif>服装</option>
                            <option value="鞋子" @if(isset($infos->size_group) && $infos->size_group=='鞋子') selected @endif>鞋子</option>
                            <option value="大人鞋帽" @if(isset($infos->size_group) && $infos->size_group=='大人鞋帽') selected @endif>大人鞋帽</option>
                            <option value="小童服装" @if(isset($infos->size_group) && $infos->size_group=='小童服装') selected @endif>小童服装</option>
                            <option value="中童" @if(isset($infos->size_group) && $infos->size_group=='中童') selected @endif>中童</option>
                            <option value="幼童" @if(isset($infos->size_group) && $infos->size_group=='幼童') selected @endif>幼童</option>
                            <option value="中童" @if(isset($infos->size_group) && $infos->size_group=='中童') selected @endif>中童</option>
                            <option value="青少年" @if(isset($infos->size_group) && $infos->size_group=='青少年') selected @endif>青少年</option>

                            <option value="配饰" @if(isset($infos->size_group) && $infos->size_group=='配饰') selected @endif>配饰</option>
                        </select>
                    </div>
                    <button type="button" class="plus">+</button>
                    <button type="button" class="minus">-</button>
                </div>
                <div class="form-group">
                    <ul class="size_ul">
                        <li class="size_lis"><span class="xing">*</span>尺码：</li>
                        @if(count($size) > 0)
                            <input type="hidden" class="sizeTYP" value="@if(in_array(19,$size) || in_array(21,$size)) 1 @endif">
                            @foreach($size as $k=>$v)
                                <li class='size_li'><input readonly type='text' class='sizes' value="{{ $v }}"></li>
                            @endforeach
                                @php($size_price = explode(',',$infos->size_price))
                            @else
                            @php($size_price = [])
                        @endif
                    </ul>
                    <ul class="money_ul">
                        <li class="money_lis"><span class="xing">*</span>价格：</li>
                        @if(count($size_price))
                        @foreach($size_price as $v)
                            <li class='money_li'><input readonly type='text' class='moneys' value="{{ $v }}"></li>
                        @endforeach
                        @endif
                    </ul>

                </div>
                <div class="form-group"><h3>颜色信息</h3></div>
                <div class="form-group">
                    <ul class="form_ul" style="height:auto;">
                        <li style="float:left;line-height:30px;margin-right:9px;"><span class="xing">*</span>颜色：</li>
                        <span class="color_span" style="float:left;width:auto;max-width:85%;">
                            @if(count($color_pro)>0)
                                @for($i=0;$i<count($color_pro);$i++)
                                    <input style="float:left;" id="colorInput{{$i}}" value="{{$color_pro[$i]}}" class="form_inp inpColor" type="text" autocomplete="off" autocorrect="off" name="color[]" id="" placeholder="颜色"/>
                                @endfor
                            @else
                                    <input style="float:left;" id="colorInput0" class="form_inp inpColor" type="text" autocomplete="off" autocorrect="off" name="color[]" id="" placeholder="颜色"/>
                            @endif
                    </span>
                        <button type="button" class="btn btn-primary addBTN">+</button>
                        <button type="button" class="btn btn-primary delBTN">-</button>
                    </ul>
                </div>
                <div class="form-group"><button type='button' class='form_add btn btn-success'>保存基本信息</button></div>
                <div class="form-group" style="height:30px;">
                    <h3 style="float:left;">面料信息</h3>
                    <a class="btn bt_a btn-primary addIns" href="javascript:;" style="float:left;margin-left:30px;" @if($pro_status==1) abc='1' @endif onclick="addlis()">添加</a>
                </div>
                <div class="form-group">
                    <div class="widget-main">
                        <div class="tabbable">
                            <ul class="nav nav-tabs" id="myTab11">
                                <li abc="1" class="lis active"><a id="curr" class="in" href="#directs">面料</a></li>
                                <li abc="2" class="lis"><a id="curr" href="#deputys">辅料</a></li>
                                <li abc="3" class="lis"><a id="curr" href="#rates">工艺</a></li>
                            </ul>
                            <div class="tab-content">
                                {{--面料--}}
                                <div id="directs" class="tab-pane fabric_div actives">
                                    <table class="fabric Onemian" abc="{{$product_id}}" border="1" cellspacing="0" cellpadding="0">
                                        <thead>
                                        <tr>
                                            <td style="width:70px;">分类</td>
                                            <td style="width:75px;">大货颜色</td>
                                            <td style="width:200px;">供应商货号</td>
                                            <td style="width:75px;">面料色卡号</td>
                                            <td style='width:70px;'>成本价/m</td>
                                            <td style='width:70px;'>门幅(cm)</td>
                                            @if(count($infos->bom)>0 && count($infos->size)>0)
                                                <td style='width:70px;'>尺码</td>
                                                <?php $sizes=explode(',',$infos->size);?>
                                                @for($i=0;$i<count($sizes);$i++)
                                                <td class="sits" id="size">{{$sizes[$i]}}</td>
                                                @endfor
                                            @endif
                                            <td style="width:95px;" class="operateTit">操作</td>
                                        </tr>
                                        </thead>
                                        <tbody>

                                        @if(count($fabric_infos)>0)
                                            <?php $infos_nums=1;?>
                                            @foreach($fabric_infos as $k => $v)
                                                @if($v->type=='main')
                                            <tr>
                                                <td>
                                                    <select class="sel_inp ips fabric_type1">
                                                        <option value="0">请选择</option>
                                                        @if($v->fabric_type)
                                                            <option value="{{$v->fabric_type}}" selected>{{$v->fabric_type}}</option>
                                                        @endif
                                                        <option value="主面料">主面料</option>
                                                        <option value="里料">里料</option>
                                                        <option value="配料">配料</option>
                                                    </select>
                                                </td>
                                                <td>
                                                    <select class="sel_inp ips bigColor cloth_info1">
                                                        @if($v->other_info)
                                                            <option value="{{$v->other_info}}">{{$v->other_info}}</option>
                                                         @endif
                                                        <option value="0">请选择</option>
                                                        @if(count($color_pro)>0)
                                                            @for($i=0;$i<count($color_pro);$i++)
                                                                <option value="{{$color_pro[$i]}}">{{$color_pro[$i]}}</option>
                                                            @endfor
                                                        @endif
                                                    </select>
                                                </td>
                                                <td>
                                                    <input class="other_info1 form_inp ips codes cob{{$fabric_infos_num->main-$infos_nums}}" abc="1" type="text" autocomplete="off" autocorrect="off" gg="{{$v->cloth_id}}"
                                                    value="@if($v->other_info){{$v->cloth_info}}@endif">
                                                </td>
                                                <td>
                                                    <select class="sel_inp ips atla1 color_define_id1">
                                                        @if($v->fabric_color)

                                                            <?php $or_color=explode(',',$v->color_ids);?>
                                                            @for($i=0;$i<count($v->fabric_color);$i++)
                                                                    <option value="{{$or_color[$i]}}" @if($colors[$v->color_id]== $v->fabric_color[$i])selected @endif>{{$v->fabric_color[$i]}}</option>
                                                            @endfor
                                                        @endif
                                                        <option value="0">请选择</option>
                                                    </select>
                                                </td>
                                                <td>
                                                    <input class="cost_info1 form_inp ips feis" type="text" autocomplete="off" autocorrect="off" value="@if($v->cost!=0) {{$v->cost}}@endif">
                                                </td>
                                                <td>
                                                    <input class="door_info1 form_inp ips" type="text" autocomplete="off" autocorrect="off" value="@if($v->door!=0) {{$v->door}}@endif">
                                                </td>
                                                <td class="ttp1" abc="{{$fabric_infos_num->main-$infos_nums}}">用量(m)</td>
                                                @if(count($infos->bom)>0 && $v->remark)
                                                  <?php $size_=explode(',',$v->remark);?>
                                                  @for($i=0;$i<count($size_);$i++)
                                                    <td><input class="feis numC rek{{$fabric_infos_num->main-$infos_nums}}" type="text" value="{{$size_[$i]}}"></td>
                                                  @endfor
                                                @endif
                                                <td>
                                                    <a href="javascript:;" class="operateDe" abc="{{$v->id}}" def="1">删除</a>
                                                    <a href="javascript:;" class="copyTr" dd="1">复制</a>
                                                </td>
                                            </tr>
                                            <?php $infos_nums++;?>
                                                @endif
                                            @endforeach
                                        @endif

                                        </tbody>
                                    </table>
                                </div>
                                {{--辅料--}}
                                <div id="deputys" class="tab-pane fabric_div">
                                    <table class="fabric Twofu" border="1" cellspacing="0" cellpadding="0">
                                        <thead>

                                        <tr>
                                            <td style="width:70px;">分类</td>
                                            <td style="width:75px;">大货颜色</td>
                                            <td style="width:120px;">供应商货号</td>
                                            <td style="width:75px;">面料色卡号</td>
                                            <td style='width:70px;'>成本价/m</td>
                                            <td style='width:70px;'>门幅(cm)</td>
                                            @if(count($infos->bom)>0 && count($infos->size)>0)
                                                <td style='width:70px;'>尺码</td>
                                                <?php $sizes=explode(',',$infos->size);?>
                                                @for($i=0;$i<count($sizes);$i++)
                                                    <td class="sits" id="size">{{$sizes[$i]}}</td>
                                                @endfor
                                            @endif
                                            <td style="width:95px;" class="opeTit">操作</td>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        @if(count($fabric_infos)>0)
                                            <?php $infos_num=1;?>
                                            @foreach($fabric_infos as $k => $v)
                                                @if($v->type=='other')
                                            <tr>
                                                <td>辅料</td>
                                                <td>
                                                    <select class="sel_inp ips bigColor cloth_info2">
                                                        @if($v->other_info)
                                                            <option value="{{$v->other_info}}">{{$v->other_info}}</option>
                                                        @endif
                                                        <option value="0">请选择</option>
                                                        @if(count($color_pro)>0)
                                                            @for($i=0;$i<count($color_pro);$i++)
                                                                <option value="{{$color_pro[$i]}}">{{$color_pro[$i]}}</option>
                                                            @endfor
                                                        @endif
                                                    </select>
                                                </td>

                                                <td>
                                                    <input class="other_info2 form_inp ips codes coc{{$fabric_infos_num->other-$infos_num}}" abc="2" type="text" autocomplete="off" autocorrect="off" gg="{{$v->cloth_id}}"
                                                           value="@if($v->other_info){{$v->cloth_info}}@endif">
                                                </td>
                                                <td>
                                                    <select class="sel_inp ips atla2 color_define_id2">
                                                        @if($v->fabric_color)
                                                            <?php $or_color=explode(',',$v->color_ids);?>
                                                            @for($i=0;$i<count($v->fabric_color);$i++)
                                                                <option value="{{$or_color[$i]}}" @if($colors[$v->color_id]== $v->fabric_color[$i])selected @endif>{{$v->fabric_color[$i]}}</option>
                                                            @endfor
                                                        @endif
                                                        <option value="0">请选择</option>
                                                    </select>
                                                </td>
                                                <td>

                                                    <input class="cost_info2 form_inp ips feis" type="text" autocomplete="off" autocorrect="off" value="@if($v->cost!='0'){{$v->cost}}@endif">
                                                </td>
                                                <td>
                                                    <input class="door_info2 form_inp ips" type="text" autocomplete="off" autocorrect="off" value="@if($v->door!='0'){{$v->door}}@endif">
                                                </td>
                                                <td class="ttp2" abc="{{$fabric_infos_num->other-$infos_num}}">用量(m)</td>
                                                @if($v->remark)
                                                    <?php $size_=explode(',',$v->remark);?>
                                                    @for($i=0;$i<count($size_);$i++)
                                                        <td><input class="feis numCF recs{{$fabric_infos_num->other-$infos_num}}" type="text" value="{{$size_[$i]}}"></td>
                                                    @endfor
                                                @endif
                                                <td>
                                                    <a href="javascript:;" class="operateDe" abc="{{$v->id}}" def="1">删除</a>
                                                    <a href="javascript:;" class="copyTr" dd="2">复制</a>
                                                </td>
                                            </tr>
                                                    <?php $infos_num++;?>
                                                @endif
                                            @endforeach
                                        @endif
                                        </tbody>
                                    </table>
                                </div>
                                {{--工艺--}}
                                <div id="rates" class="tab-pane fabric_div">
                                    <table class="fabric Threegong" border="1" cellspacing="0" cellpadding="0">
                                        <thead>
                                        <tr>
                                            <td>颜色</td>
                                            <td>工艺名称</td>
                                            <td>标准工价</td>
                                            <td>单件工价</td>
                                            <td>操作</td>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        @if(count($design_craft_cost)>0)
                                            @foreach($design_craft_cost as $k => $v)
                                            <tr>
                                                <td>
                                                    <select class="sel_inp ips bigColor cloth_info3">
                                                        @if(count($color_pro)>0)
                                                            @for($i=0;$i<count($color_pro);$i++)
                                                                <option value="{{$color_pro[$i]}}" @if($v->color==$color_pro[$i]) selected @endif>{{$color_pro[$i]}}</option>
                                                            @endfor
                                                        @endif
                                                    </select>
                                                </td>
                                                <td>
                                                    <select class="sel_inp ips cardInput">
                                                        @foreach($craft_infos as $kk => $vv)
                                                            <option value={{$vv->id}} @if($vv->craft_name==$v->craft_name) selected @endif >{{$vv->craft_name}}</option>
                                                        @endforeach
                                                            <option value="0">请选择</option>
                                                    </select>
                                                </td>
                                                <td>
                                                    <input class="form_inp ips norms feis" type="text" autocomplete="off" autocorrect="off" value="{{$v->standard_price}}">
                                                </td>
                                                <td>
                                                    <input class="form_inp ips singleton feis" type="text" autocomplete="off" autocorrect="off" value="{{$v->single_price}}">
                                                </td>
                                                <td>
                                                    <a href="javascript:;" class="operateDe" abc="{{$v->id}}" def="2">删除</a>
                                                </td>
                                            </tr>
                                            @endforeach
                                        @endif
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group"><h3>费用</h3></div>
                <div class="form-group">
                    <ul class="form_ul">
                        <li class="form_li">车位：<input class="form_inp parking_spaces feis" value="{{$infos->parking_spaces}}" maxlength="10" type="text" autocomplete="off" autocorrect="off" placeholder="车位" /></li>
                        <li class="form_li">水洗：<input class="form_inp washing feis" maxlength="10"   value="{{$infos->washing}}" type="text" autocomplete="off" autocorrect="off" placeholder="水洗" /></li>
                        <li class="form_li">手工费：<input class="form_inp manual_fee feis" maxlength="10"  value="{{$infos->manual_fee}}"  type="text" autocomplete="off" autocorrect="off" placeholder="手工费" /></li>
                    </ul>
                </div>
                <div class="form-group">
                    <ul class="form_ul">
                        <li class="form_li">锁眼：<input class="form_inp keyhole feis" maxlength="10" type="text"   value="{{$infos->keyhole}}"  autocomplete="off" autocorrect="off" placeholder="锁眼" /></li>
                        <li class="form_li">包装：<input class="form_inp parcel feis" maxlength="10" value="{{$infos->parcel}}" type="text" autocomplete="off" autocorrect="off" placeholder="包装" /></li>
                        <li class="form_li">成本：<input class="form_inp cost feis" maxlength="10" value="{{$infos->cost}}" type="text" autocomplete="off" autocorrect="off" placeholder="成本" /></li>
                    </ul>
                </div>
                <div class="form-group"><button type='button' class='save_add btn btn-success' abc="{{$product_id}}">保存面料信息</button></div>
            </div>
        </div>
    </div>
    {{--弹框--}}
    <div class="info_box">
        <h3 style="text-align:center;position:relative;margin-bottom:20px;"><span class="infoAdd"></span><i class="fa fa-close chaL"></i></h3>
        <div class="form-group">
            <ul class="form_ul">
                <li class="form_li" style="width:auto;">关键词：<input class="form_inp fabric_num" type="text" autocomplete="off" autocorrect="off" placeholder="请输入关键词" /></li>
                <button type='button' class='btn btn-info souGo'>搜索</button>
            </ul>
        </div>
        <div class="form-group">
            <table class="gong">
                <thead><tr><td style="width:350px;">供应商</td><td>供应商货号</td></tr></thead>
                <tbody></tbody>
            </table>
        </div>
        <div class="form-group">
            <div class="page1" style="width:430px;margin:0 auto;"></div>
        </div>
    </div>

    {{--自定义减弹框--}}
    <div class="popup" style="display:none;">
        <div class="popup_header">
            <span>删除尺码</span>
            <button class="shut1 shut">×</button>
        </div>
        <div class="popup_center">

        </div>
        <div class="popup_bottom">
            <button class="popup_btn">确定</button>
        </div>
    </div>
    {{--颜色减弹框--}}
    <div class="popup2" style="display:none;">
        <div class="popup_header2">
            <span>删除颜色</span>
            <button class="shut3 shut">×</button>
        </div>
        <div class="popup_center2">

        </div>
        <div class="popup_bottom2">
            <button class="popup_btn2">确定</button>
        </div>
    </div>
    <div class="mask" style="display:none;"></div>
    <script>
        var product_id='{{ $_GET['id'] }}';
        $.selectSuggest('colorInput0', colors);

        var n=$(".inpColor").length;
        for(var gg=0;gg<n;gg++){
            $.selectSuggest('colorInput'+gg, colors);
        }
        /*修改价格监听*/
        if($(".sizeTYP").val()==' 1 '){
            var len=$(".size_li").length;
            var sArr=[];
            for(var cv=0;cv<len;cv++){
                if( $(".size_li").eq(cv).children(".sizes").val()==19 || $(".size_li").eq(cv).children(".sizes").val()==21){
                    sArr.push(cv);
                }
            }
            $(".money_li").eq(sArr[0]).children(".moneys").addClass("disMoney");
            $(".money_li").eq(sArr[1]).children(".moneys").addClass("disMoney");
        }
        /*品名拼写*/
        $('.inp3').bind('input propertychange', function() {
            var inp3=$(this).find("option:selected").text();
            var inp8=$(".inp8").val();
            if(inp3=='请选择'){
                inp3='';
                $(".inp11").val('');
            }else{
                $(".inp11").val(''+inp3+''+inp8+'');
            }

        });
    </script>
    <script src="{{env('CDN_DOMAIN_NAME')}}/js/createPro.js?v=1.4.2"></script>
@endsection
